package com.macro.mall.service;


import com.macro.mall.model.PmProdStock;
import com.macro.mall.product.dto.QueryStockDoorDto;

public interface PmProdStockService {
    PmProdStock deductStock(Long stockId, Float changeStock, String orderId) throws Exception;
    boolean rollbackStock(Long prodId, Long skuInstId, Integer siteId, String stockDate, String stockTime, Float changeStock, String orderId) throws Exception;
    boolean rollbackStockSimplify(String orderId) throws Exception;
    /**
     * 扣减库存 -- 上门服务
     */
    PmProdStock deductStockByDoor(QueryStockDoorDto stockDoorDto, String stockDate, String stockTime, Float changeStock, String orderId) throws Exception ;
}